
import './assets/reset.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'
// 全局指令注册
import {lazyPlugin} from './directives/directivePlugin'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


const app = createApp(App)

// use持久化插件
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(lazyPlugin)
app.mount('#app')
